﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace plants_vs_zombies
{
    /// <summary>
    /// 游戏类
    /// </summary>
    class Game
    {
        /// <summary>
        /// 绘制当前游戏的场景
        /// </summary>
        /// <param name="g">绘图句柄</param>
        /// <param name="size">游戏区域尺寸</param>
        public void Draw(Graphics g,Size size)
        {
            Rectangle rec = new Rectangle(new Point(0, 0), size);
            g.DrawImage(Properties.Resources.bg, rec);
        }
    }
}
